import React from 'react'
import { getMenuSub } from 'services/utils'
import { Icon } from 'antd'
import BaseData from './pages/base-data'
import RookieData from './pages/rookie-data'
import RookieData2 from './pages/rookie-data2'
import RoomInfo from './pages/room-info'
import SevenOthers from './pages/seven-others'
import RoomFishInfo from './pages/room-fish-info'
import SystemConsume from './pages/system-consume'
import Dandou from './pages/dantou'
import Ltv from './pages/ltv'
import Task from './pages/task'
import DaliyReport from './pages/daily-report'
import Flag from 'config/flag'

const routes = {
  path: '/proto-data',
  name: '数据统计类',
  childRoutes: [
    //{ path: 'default', name: 'Home', component: Screen, isIndex: true },
    { 
      path: 'base-data', 
      name: '基础数据查询', 
      component: BaseData, 
      flags: Flag['/proto-data/base-data']
    },
    { 
      path: 'rookie-data', 
      name: '新用户统计', 
      component: RookieData, 
      flags: Flag['/proto-data/rookie-data']
    },
    { 
      path: 'rookie-data2', 
      name: '新用户细分', 
      component: RookieData2, 
      flags: Flag['/proto-data/rookie-data2']
    },
    { 
      path: 'room-info', 
      name: '房间信息查询', 
      component: RoomInfo, 
      flags: Flag['/proto-data/room-info']
    },
    { 
      path: 'seven-others', 
      name: '房间数据查询', 
      component: SevenOthers, 
      flags: Flag['/proto-data/seven-others']
    },
    { 
      path: 'room-fish-info', 
      name: '房间鱼表查询', 
      component: RoomFishInfo, 
      flags: Flag['/proto-data/room-fish-info']
    },
    { 
      path: 'system-consume', 
      name: '系统消耗查询', 
      component: SystemConsume, 
      flags: Flag['/proto-data/system-consume']
    },
    { 
      path: 'dantou', 
      name: '弹头统计查询', 
      component: Dandou, 
      flags: Flag['/proto-data/dantou']
    },
    { 
      path: 'ltv', 
      name: 'LTV统计查询', 
      component: Ltv, 
      flags: Flag['/proto-data/ltv']
    },
    { 
      path: 'task', 
      name: '任务统计查询', 
      component: Task, 
      flags: Flag['/proto-data/task']
    },
    { 
      path: 'daily-report', 
      name: '每日统计', 
      component: DaliyReport, 
      flags: Flag['/proto-data/daily-report']
    },
  ]
}// 

export default routes

export const menuSub = getMenuSub(routes, {
    key:   `proto-data`, 
    //name:  `帐号管理`, 
    icon:  <Icon type="database" />
  })